interface animal {
    height: string
    weight: string
    age: number
}

interface person extends animal {
    name: string

}
interface cat extends animal {
    brand: string
}

const zhang: person = {
    name: '张三',
    height: '1.78m',
    weight: '60kg',
    age: 28
}

const tiaoTiao: cat = {
    brand: '金渐层',
    height: '35cm',
    weight: '2.6kg',
    age: 2
}
console.log(zhang);
console.log(tiaoTiao);
